package com.zhongli.devplatform.controller.sys;

import com.zhongli.devplatform.service.imp.sys.ReadBannerService;
import com.zhongli.devplatform.bean.Res;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author WuXiCheng
 * @version 1.0
 * @date 2020/7/23 14:49
 */
@Api(tags = "轮播", description = "轮播", value = "轮播")
@RestController
@RequestMapping("/banner")
public class BannerController {

    @Autowired
    private ReadBannerService bannerService;


    @ApiOperation("查询轮播列表")
    @GetMapping("/list")
    public Res list(){
        return Res.ok(bannerService.list());
    }

}
